const path = require('path')

module.exports = {
    // entry:['./src/scripts/main.js','./src/scripts/main1.js'], // entry 可以有多个
    entry:{
      main:'./src/scripts/main.js',
      main1:'./src/scripts/main1.js'
    },
    output: {
      path:path.resolve(__dirname,"dist"),
      filename: '[name]-[hash].js'
    },
    module: {
      rules: [
        { test: /\.css$/, loader: 'style-loader!css-loader' },
      ]
    },
    mode: 'development'
  };